<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="notice.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<TITLE>OA分页</TITLE>

		<script type="text/javascript">
	function change() {
	
		var url = "<%=basePath%>/${pageUtil.actionTypeStr}"
				+ document.getElementById("choose").value;
		location = url;
	}
</script>
	</HEAD>

	<body>
		
		<table id="mytable" border="0" cellpadding="0" cellspacing="1"
			align="right">
			<tr>
				<td>
					<a href="<%=basePath%>/${pageUtil.first}">首页</a>
				</td>
				<td>
					<a href="<%=basePath%>/${pageUtil.pre}">上一页</a>
				</td>
				<td>
					<a href="<%=basePath%>/${pageUtil.next}">下一页</a>
				</td>
				<td>
					<a href="<%=basePath%>/${pageUtil.last}">尾页</a>
				</td>
				<td>
					<select id="choose" name="no" onchange="change()">
						<c:forEach var="i" begin="1" end="${pageUtil.totalPage}">
							<c:choose>
								<c:when test="${i==pageUtil.curPage}">
									<option value="${i }" selected>
										${i }/${pageUtil.totalPage}
									</option>
								</c:when>
								<c:otherwise>
									<option value="${i }">
										${i }/${pageUtil.totalPage}
									</option>
								</c:otherwise>
							</c:choose>
						</c:forEach>
					
						

					</select>
				</td>
				<td>
					<a>【当前是 第 ${pageUtil.curPage } 页】</a>
				</td>
			
			</tr>
		</table>
	</body>
</html>